package com.ke.utils;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

/**
 * @author bochen
 */
public class MD5Utils {
    public static String getMD5(String password,int number,String salt){
        ByteSource bytes = ByteSource.Util.bytes(salt);
        return new SimpleHash("MD5",password,bytes,number).toString();
    }
}

